package com.sitech.portal.system.dao.ibatis;

import java.util.HashMap;
import java.util.List;

import com.sitech.ibnms.core.BaseIbnmsDao;
import com.sitech.ibnms.core.IPage;
import com.sitech.ibnms.core.PageForm;
import com.sitech.portal.system.dao.ISysParaDao;

public class SysParaDaoImpl extends BaseIbnmsDao implements ISysParaDao {

	public void add(HashMap map) {
			this.insert("insertForTB_SYS_PARA", map);
	}

	public void update(HashMap map) {
			this.update("updateForTB_SYS_PARA", map);
	}

	public void deleteForTB_SYS_PARAByPK(String PARA_ID) {
			this.delete("deleteForTB_SYS_PARAByPK", PARA_ID);
	}

	public IPage findListSysPara(PageForm pageForm) {
			return this.findPage("findListSysPara", pageForm);

	}

	public HashMap findObjForTB_SYS_PARAByPK(String PARA_ID) {
			return (HashMap) this.querySingle(
					"findObjForTB_SYS_PARAByPK", PARA_ID);
	}

	public HashMap findSysParaByParaId(String PARA_ID) {
			return (HashMap) this.querySingle("findSysParaByParaId",
					PARA_ID);
	}

	/**
	 * 查询出PARA_ID以suffix结尾的系统参数
	 * @param suffix
	 * @author liujhc 2011-4-11 14:51:03
	 * @return
	 */
	public List findSysParaByParaIdEndWith(String suffix) {
			return this.query("findSysParaByParaIdEndWith",
					suffix);
	}
	
}
